﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LuKou.Shopspace.Services;
using LuKou.Shopspace.Domains;

namespace LuKou.Web.BLL.Service
{
    public class CategoryService
    {
        private static ICategorySvr _svr;
        static CategoryService()
        {
            _svr = ServiceHelper.Get<ICategorySvr>("ICategorySvr");
        }

        public static CategoryPropValue GetGoodsCategory(long categoryID, long pid, long vid)
        {
            return _svr.GetCategoryPropValueDetail(categoryID, pid, vid);
        }

        public static List<Category> GetCategoryList(long parentId)
        {
            return _svr.GetChildCategoryList(parentId);
        }

        public static List<CategoryProp> GetCategoryPropList(long cid)
        {
            return _svr.GetCategoryPropList(cid);
        }

        public static List<CategoryPropValue> GetCategoryPropValueList(long cid,long pid)
        {
            return _svr.GetCategoryPropValueList(cid, pid);
        }

        public static CategoryProp GetCategoryPropDetail(long pid)
        {
            return _svr.GetCategoryPropDetail(pid);
        }

        public static CategoryPropValue GetCategoryPropValueDetail(long pid)
        {
            return _svr.GetCategoryPropValueDetail(pid);
        }
    }
}
